using UnityEngine;

public abstract class BattleResultChecker:MonoBehaviour
{
    protected MBattleController m_MBattleController;
    public virtual void Init(MBattleController mBattleController)
    {
        m_MBattleController = mBattleController;
    }

    public abstract bool battleFinished { get; }
    public abstract BattleResult GetBattleResult();

    public static int Round(float f)
    {
        return (int)(f + 0.5f);
    }
}
public partial class MBattleController
{
    public override bool battleFinished => m_BattleResultChecker.battleFinished;

    public override BattleResult GetBattleResult()
    {
        return m_BattleResultChecker.GetBattleResult();
    }

    

}